package redis_one

type RedisManager struct {
}

func CreateRedisManager(ip, p string) (*RedisManager, error) {
	return new(RedisManager), InitRedisPass(ip, p)
}

func (this *RedisManager) Get(key string) (string, error) {
	return Get(key)
}

func (this *RedisManager) Set(key string, value interface{}) error {
	return Set(key, value)
}

func (this *RedisManager) SetByTime(key string, value interface{}, tm int) error {
	return SetByTime(key, value, tm)
}

func (this *RedisManager) DEL(Key string) (int, error) {
	return DEL(Key)
}

func (this *RedisManager) SetNx(key string, value interface{}) (bool, error) {
	return SetNx(key, value)
}

func (this *RedisManager) GETSET(key string, value interface{}) (string, error) {
	return GETSET(key, value)
}
